package com.yanqu.road.entity.activity.bowart;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_bow_art")
public class BowArtUserData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    int activityId;

    @FieldTypeAnnotation(select = true, update = true, desc = "玩家id")
    long userId;

    @FieldTypeAnnotation(desc = "总积分")
    long totalScore;

    @FieldTypeAnnotation(desc = "当前箭靶下标")
    int curTargetIndex = -1;

    @FieldTypeAnnotation(desc = "连续中心环数")
    int contiRings;

    @FieldTypeAnnotation(desc = "门客id")
    int patronsId;

    //缓存

    int windPower;        //风力

    int windDirection;    //风向

    //开始时间(每次进界面刷新)
    long inTime;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(long totalScore) {
        if(this.totalScore != totalScore) {
            this.totalScore = totalScore;
            setUpdateOption();
        }
    }

    public int getCurTargetIndex() {
        return curTargetIndex;
    }

    public void setCurTargetIndex(int curTargetIndex) {
        if(this.curTargetIndex != curTargetIndex) {
            this.curTargetIndex = curTargetIndex;
            setUpdateOption();
        }
    }

    public int getContiRings() {
        return contiRings;
    }

    public void setContiRings(int contiRings) {
        if(this.contiRings != contiRings) {
            this.contiRings = contiRings;
            setUpdateOption();
        }
    }

    public int getPatronsId() {
        return patronsId;
    }

    public void setPatronsId(int patronsId) {
        if(this.patronsId != patronsId) {
            this.patronsId = patronsId;
            setUpdateOption();
        }
    }

    public int getWindPower() {
        return windPower;
    }

    public void setWindPower(int windPower) {
        this.windPower = windPower;
    }

    public int getWindDirection() {
        return windDirection;
    }

    public void setWindDirection(int windDirection) {
        this.windDirection = windDirection;
    }

    public long getInTime() {
        return inTime;
    }

    public void setInTime(long inTime) {
        this.inTime = inTime;
    }
}
